<?php


namespace app\api\controller;


class Site extends SiteController
{
    public function Site(){
        $res=db('site')->select();
        if($res === false){
            return $this->return_msg(400,'查询失败！');
        }
        elseif(empty($res)){
            return $this->return_msg(500,'暂无数据！');
        }
        else{
            return $this->return_msg(200,'查询成功！',$res);
        }
    }
}